package com.lrs.s2sh.utils;

public class StringUtils {

	/**
	 * Return true if the string is null or empty. Otherwise return false.
	 * 
	 * @param string
	 * @return
	 */
	public static boolean isNullOrEmpty(String string) {
		return ((string == null) || (string.trim().length() == 0));
	}

	/**
	 * Return true if the string is not null and also not empty. Otherwise
	 * return false. Opposite to isNullOrEmpty.
	 * 
	 * @param string
	 * @return
	 */
	public static boolean isNotNullAndNotEmpty(String string) {
		return !isNullOrEmpty(string);
	}
}
